package net.jueb.juebCore.net.client;
import net.jueb.juebCore.net.message.AppMessage;

public interface NetClient{

	public abstract void startNetWork();
	
	public abstract void close();

	public abstract void sendMessage(AppMessage msg);

	public abstract void sendData(byte[] data, int offset, int count);

	public abstract boolean isActive();
	
	public abstract void setName(String name);
	
	/**
	 * 开启断线重连
	 * @param arg
	 */
	public abstract void enableReconnect(boolean arg);
}
